using System.ComponentModel.DataAnnotations;

namespace ThridGroup.ERP.DTO.SupplierDto
{
    /// <summary>
    /// 创建供应商DTO
    /// </summary>
    public class CreateSupplierDto
    {
        /// <summary>
        /// 供应商编码
        /// </summary>
        [Required]
        [StringLength(50)]
        public string SupplierCode { get; set; }
        
        /// <summary>
        /// 供应商名称
        /// </summary>
        [Required]
        [StringLength(100)]
        public string SupplierName { get; set; }
        
        /// <summary>
        /// 供应商等级
        /// </summary>
        [StringLength(20)]
        public string SupplierGrade { get; set; }
        
        /// <summary>
        /// 供应商评分
        /// </summary>
        [Range(0, 100)]
        public int SupplierScore { get; set; }
        
        /// <summary>
        /// 供应商电话
        /// </summary>
        [StringLength(20)]
        public string SupplierPhone { get; set; }
        
        /// <summary>
        /// 是否启用
        /// </summary>
        public bool IsEnable { get; set; } = true;
        
        /// <summary>
        /// 供应商地址
        /// </summary>
        [StringLength(500)]
        public string SupplierAdress { get; set; }
        
        /// <summary>
        /// 备注
        /// </summary>
        [StringLength(1000)]
        public string Context { get; set; }
    }
} 